<template>
  <div class="home-container">
    <!-- 主标题区域 -->
    <div class="hero-section">
      <div class="hero-content">
        <h1 class="main-title">
          <span class="title-gradient">云顶之弈</span>
          <span class="subtitle">战略大师指南</span>
        </h1>
        <p class="hero-description">
          探索英雄联盟自走棋的无限可能，掌握每一个英雄、装备与羁绊的奥秘
        </p>
      </div>
    </div>



    <!-- 游戏介绍区域 -->
    <div class="game-intro-section">
      <div class="intro-content">
        <h2 class="section-title">关于云顶之弈</h2>
        <div class="intro-text">
          <p>
            云顶之弈是英雄联盟宇宙中的一款策略类自走棋游戏。在这个充满魔法与冒险的世界里，
            你将扮演一名战略大师，通过收集英雄棋子、合成装备、激活羁绊来构建属于自己的无敌阵容。
          </p>
          <p>
            每一局游戏都是全新的挑战，运气与策略并重，考验你的临场应变能力和长远规划思维。
            无论是新手玩家还是资深大师，都能在这里找到属于自己的乐趣。
          </p>
        </div>
      </div>
    </div>

    <!-- 快速导航区域 -->
    <div class="quick-nav-section">
      <h2 class="section-title">快速导航</h2>
      <div class="nav-cards">
        <router-link to="/hero" class="nav-card">
          <div class="nav-icon">👑</div>
          <h3>英雄</h3>
          <p>查看所有英雄详情</p>
        </router-link>
        
        <router-link to="/equip" class="nav-card">
          <div class="nav-icon">⚔️</div>
          <h3>装备</h3>
          <p>装备合成与属性</p>
        </router-link>
        
        <router-link to="/bond" class="nav-card">
          <div class="nav-icon">🤝</div>
          <h3>羁绊</h3>
          <p>羁绊效果与搭配</p>
        </router-link>
        
        <router-link to="/rune" class="nav-card">
          <div class="nav-icon">🔮</div>
          <h3>符文</h3>
          <p>海克斯符文指南</p>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'

onMounted(() => {
  // 添加页面加载动画
  const cards = document.querySelectorAll('.feature-card, .nav-card')
  cards.forEach((card, index) => {
    setTimeout(() => {
      card.style.opacity = '1'
      card.style.transform = 'translateY(0)'
    }, index * 100)
  })
})
</script>

<style scoped>
.home-container {
  min-height: 100vh;
  padding: 0 20px;
  color: #ffffff;
}

/* 主标题区域 */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.main-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.title-gradient {
  background: linear-gradient(135deg, #00a383 0%, #00d4aa 50%, #00a383 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.subtitle {
  display: block;
  font-size: 2rem;
  color: #ffffff;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.2rem;
  color: #cccccc;
  line-height: 1.6;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 功能介绍区域 */
.features-section {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(0, 163, 131, 0.1);
  border: 1px solid rgba(0, 163, 131, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #00a383;
  box-shadow: 0 10px 30px rgba(0, 163, 131, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #00a383;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #cccccc;
  line-height: 1.6;
}

/* 游戏介绍区域 */
.game-intro-section {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #00a383;
  margin-bottom: 2rem;
  text-align: center;
}

.intro-text {
  text-align: left;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 1.5rem;
}

/* 快速导航区域 */
.quick-nav-section {
  padding: 4rem 0;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-card {
  background: rgba(0, 163, 131, 0.15);
  border: 2px solid rgba(0, 163, 131, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.nav-card:hover {
  transform: translateY(-3px);
  border-color: #00a383;
  background: rgba(0, 163, 131, 0.25);
  box-shadow: 0 8px 25px rgba(0, 163, 131, 0.3);
}

.nav-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.nav-card h3 {
  color: #00a383;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.nav-card p {
  color: #cccccc;
  font-size: 0.9rem;
}

/* 动画效果 */
@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px rgba(0, 163, 131, 0.5);
  }
  100% {
    text-shadow: 0 0 30px rgba(0, 163, 131, 0.8), 0 0 40px rgba(0, 163, 131, 0.3);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-container {
    padding: 0 15px;
  }
  
  .main-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .nav-cards {
    grid-template-columns: 1fr;
  }
}
</style>